﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents.Log;

namespace System
{
    public static class ExceptionExt
    {
        public static void Log(this Exception ex, string message = null, Logger logger = null)
        {
            Logger l = logger;
            if (l == null)
                l = Logger.Default;
            l.Log(ex, message);
        }
    }
}
